package com.zoe.app.util;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Console;
import lombok.experimental.UtilityClass;

import java.util.StringJoiner;

/**
 * @author zoe.Zhang
 * @date 2022/07/21
 * @description
 */
@UtilityClass
public class SmallTool {
    public void printTimeAndThread(String tag) {
        StringJoiner add = new StringJoiner("\t|\t")
                .add(Convert.toStr(DateUtil.now()))
                .add(Convert.toStr(Thread.currentThread().getId()))
                .add(Thread.currentThread().getName())
                .add(tag);
        Console.log(add);

    }
}
